const express = require('express')
const router = express.Router()

router.post('/login', (req, res) => {
  // console.log(req.body)
  if (req.body.phone === '13610658094' && req.body.sms === '123456') {
    res.send({
      ErrorCode: '000000',
      msg: '登录成功'
    })
  } else {
    res.send({
      ErrorCode: '000001',
      msg: '账号或者密码错误!'
    })
  }
  
})

module.exports = router

